Optimal. Leaf size=85 \[ \frac {A \sin (c+d x)}{3 b d \cos ^{\frac {5}{2}}(c+d x) \sqrt {b \cos (c+d x)}}+\frac {(2 A+3 C) \sin (c+d x)}{3 b d \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 85, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.114, Rules used = {18, 3091, 3852,
8} \begin {gather*} \frac {(2 A+3 C) \sin (c+d x)}{3 b d \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)}}+\frac {A \sin (c+d x)}{3 b d \cos ^{\frac {5}{2}}(c+d x) \sqrt {b \cos (c+d x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 18
Rule 3091
Rule 3852
Rubi steps
\begin {align*} \int \frac {A+C \cos ^2(c+d x)}{\cos ^{\frac {5}{2}}(c+d x) (b \cos (c+d x))^{3/2}} \, dx &=\frac {\sqrt {\cos (c+d x)} \int \left (A+C \cos ^2(c+d x)\right ) \sec ^4(c+d x) \, dx}{b \sqrt {b \cos (c+d x)}}\\ &=\frac {A \sin (c+d x)}{3 b d \cos ^{\frac {5}{2}}(c+d x) \sqrt {b \cos (c+d x)}}+\frac {\left ((2 A+3 C) \sqrt {\cos (c+d x)}\right ) \int \sec ^2(c+d x) \, dx}{3 b \sqrt {b \cos (c+d x)}}\\ &=\frac {A \sin (c+d x)}{3 b d \cos ^{\frac {5}{2}}(c+d x) \sqrt {b \cos (c+d x)}}-\frac {\left ((2 A+3 C) \sqrt {\cos (c+d x)}\right ) \text {Subst}(\int 1 \, dx,x,-\tan (c+d x))}{3 b d \sqrt {b \cos (c+d x)}}\\ &=\frac {A \sin (c+d x)}{3 b d \cos ^{\frac {5}{2}}(c+d x) \sqrt {b \cos (c+d x)}}+\frac {(2 A+3 C) \sin (c+d x)}{3 b d \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.15, size = 51, normalized size = 0.60 \begin {gather*} \frac {\sqrt {\cos (c+d x)} \sin (c+d x) \left (3 (A+C)+A \tan ^2(c+d x)\right )}{3 d (b \cos (c+d x))^{3/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.26, size = 54, normalized size = 0.64
method | result | size |
default | \(\frac {\sin \left (d x +c \right ) \left (2 A \left (\cos ^{2}\left (d x +c \right )\right )+3 C \left (\cos ^{2}\left (d x +c \right )\right )+A \right )}{3 d \left (b \cos \left (d x +c \right )\right )^{\frac {3}{2}} \cos \left (d x +c \right )^{\frac {3}{2}}}\) | \(54\) |
risch | \(\frac {i \left (3 C \,{\mathrm e}^{3 i \left (d x +c \right )}+\left (9 C +8 A \right ) \cos \left (d x +c \right )+i \left (4 A +3 C \right ) \sin \left (d x +c \right )\right )}{3 b \sqrt {b \cos \left (d x +c \right )}\, \sqrt {\cos \left (d x +c \right )}\, \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{2} d}\) | \(84\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 380 vs.
\(2 (73) = 146\).
time = 0.62, size = 380, normalized size = 4.47 \begin {gather*} \frac {2 \, {\left (\frac {3 \, C \sqrt {b} \sin \left (2 \, d x + 2 \, c\right )}{b^{2} \cos \left (2 \, d x + 2 \, c\right )^{2} + b^{2} \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 \, b^{2} \cos \left (2 \, d x + 2 \, c\right ) + b^{2}} + \frac {2 \, {\left ({\left (3 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )} \sin \left (6 \, d x + 6 \, c\right ) + 3 \, {\left (3 \, \cos \left (2 \, d x + 2 \, c\right ) + 1\right )} \sin \left (4 \, d x + 4 \, c\right ) - 3 \, \cos \left (6 \, d x + 6 \, c\right ) \sin \left (2 \, d x + 2 \, c\right ) - 9 \, \cos \left (4 \, d x + 4 \, c\right ) \sin \left (2 \, d x + 2 \, c\right )\right )} A}{{\left (b \cos \left (6 \, d x + 6 \, c\right )^{2} + 9 \, b \cos \left (4 \, d x + 4 \, c\right )^{2} + 9 \, b \cos \left (2 \, d x + 2 \, c\right )^{2} + b \sin \left (6 \, d x + 6 \, c\right )^{2} + 9 \, b \sin \left (4 \, d x + 4 \, c\right )^{2} + 18 \, b \sin \left (4 \, d x + 4 \, c\right ) \sin \left (2 \, d x + 2 \, c\right ) + 9 \, b \sin \left (2 \, d x + 2 \, c\right )^{2} + 2 \, {\left (3 \, b \cos \left (4 \, d x + 4 \, c\right ) + 3 \, b \cos \left (2 \, d x + 2 \, c\right ) + b\right )} \cos \left (6 \, d x + 6 \, c\right ) + 6 \, {\left (3 \, b \cos \left (2 \, d x + 2 \, c\right ) + b\right )} \cos \left (4 \, d x + 4 \, c\right ) + 6 \, b \cos \left (2 \, d x + 2 \, c\right ) + 6 \, {\left (b \sin \left (4 \, d x + 4 \, c\right ) + b \sin \left (2 \, d x + 2 \, c\right )\right )} \sin \left (6 \, d x + 6 \, c\right ) + b\right )} \sqrt {b}}\right )}}{3 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 50, normalized size = 0.59 \begin {gather*} \frac {{\left ({\left (2 \, A + 3 \, C\right )} \cos \left (d x + c\right )^{2} + A\right )} \sqrt {b \cos \left (d x + c\right )} \sin \left (d x + c\right )}{3 \, b^{2} d \cos \left (d x + c\right )^{\frac {7}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 2.42, size = 220, normalized size = 2.59 \begin {gather*} \frac {\sqrt {b\,\cos \left (c+d\,x\right )}\,\left (18\,A\,\sin \left (2\,c+2\,d\,x\right )+12\,A\,\sin \left (4\,c+4\,d\,x\right )+2\,A\,\sin \left (6\,c+6\,d\,x\right )+15\,C\,\sin \left (2\,c+2\,d\,x\right )+12\,C\,\sin \left (4\,c+4\,d\,x\right )+3\,C\,\sin \left (6\,c+6\,d\,x\right )+A\,20{}\mathrm {i}+C\,30{}\mathrm {i}+A\,\cos \left (2\,c+2\,d\,x\right )\,30{}\mathrm {i}+A\,\cos \left (4\,c+4\,d\,x\right )\,12{}\mathrm {i}+A\,\cos \left (6\,c+6\,d\,x\right )\,2{}\mathrm {i}+C\,\cos \left (2\,c+2\,d\,x\right )\,45{}\mathrm {i}+C\,\cos \left (4\,c+4\,d\,x\right )\,18{}\mathrm {i}+C\,\cos \left (6\,c+6\,d\,x\right )\,3{}\mathrm {i}\right )}{3\,b^2\,d\,\sqrt {\cos \left (c+d\,x\right )}\,\left (15\,\cos \left (2\,c+2\,d\,x\right )+6\,\cos \left (4\,c+4\,d\,x\right )+\cos \left (6\,c+6\,d\,x\right )+10\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________